<template>
  <view @click="handleRequest">
	个人中心
  </view>
</template>

<script>
import { getUserInfo, getMiniProgramCode } from "../../api/user";
export default {
  data() {
    return {};
  },
  methods: {
    handleRequest() {
      getUserInfo()
        .then((res) => {
          console.log("成功 0", res);
        })
        .catch((err) => {
          console.log("失败 0", err);
        });
    },
    handleRequest2() {
      getMiniProgramCode()
        .then((res) => {
          console.log("成功 0", res);
        })
        .catch((err) => {
          console.log("失败 0", err);
        });
    },
  },
};
</script>

<style lang="scss">
</style>
